<template>
    <div>
        <h3>优惠券列表</h3>
        <input type="button" value="添加" class="btn btn-primary" @click="add"/>
    </div>
</template>

<script setup lang="ts">
import {ref,reactive,onMounted} from 'vue'
import axios from 'axios';
import { useRouter,useRoute } from 'vue-router';
const router=useRouter();
const route=useRoute();

//函数
const add=()=>{
    router.push('/discountAdd');
}

</script>

<style scoped>

</style>